package com.java80.springmall.cloud.order.consumer.client;

import java.util.List;

import org.springframework.stereotype.Component;

import com.java80.springmall.cloud.order.consumer.entity.Product;
@Component
public class ProductClientFallBack implements ProductClient{

	@Override
	public List<Product> findAll() {
		throw new RuntimeException("findAll Exception");
	}

	@Override
	public boolean updateStored(long productId, int nums) {
		throw new RuntimeException("updateStored Exception");
	}

	@Override
	public Product get(long id) {
		throw new RuntimeException("get Exception");
	}

}
